.class public Lcom/xingbook/park/activity/UpdateAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/xingbook/ui/x;


# instance fields
.field private a:Z

.field private b:Lcom/xingbook/ui/ad;

.field private c:Lcom/xingbook/ui/ad;

.field private d:Lcom/xingbook/ui/ad;

.field private final e:Lcom/xingbook/park/activity/ce;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    new-instance v0, Lcom/xingbook/park/activity/ce;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/ce;-><init>(Lcom/xingbook/park/activity/UpdateAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->e:Lcom/xingbook/park/activity/ce;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    return-object v0
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const-string v1, "\u6b63\u5728\u68c0\u67e5\u66f4\u65b0..."

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const v1, -0x666667

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/activity/cd;

    invoke-direct {v1, p0}, Lcom/xingbook/park/activity/cd;-><init>(Lcom/xingbook/park/activity/UpdateAct;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/ui/ad;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/park/activity/UpdateAct;)Lcom/xingbook/park/activity/ce;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->e:Lcom/xingbook/park/activity/ce;

    return-object v0
.end method


# virtual methods
.method public a(I)V
    .locals 3

    if-nez p1, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    if-eqz v0, :cond_1

    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/xingbook/park/activity/HomeActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/UpdateAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->finish()V

    const/high16 v0, 0x7f04

    const v1, 0x7f040001

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/UpdateAct;->overridePendingTransition(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->finish()V

    goto :goto_0
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u8f6f\u4ef6\u66f4\u65b0"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    const-string v0, "update"

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "http://app2.xingbook.com/store/apkdown.do"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "?pid="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget v1, Lcom/xingbook/c/c;->a:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&suberId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/j;->d()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&versionCode="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/r;->c()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&did="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/c/j;->f()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "&appId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string v2, "android.intent.action.VIEW"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    :try_start_0
    invoke-virtual {p0, v1}, Lcom/xingbook/park/activity/UpdateAct;->startActivity(Landroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->finish()V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string v0, "recheck"

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/xingbook/park/activity/UpdateAct;->a()V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    :try_start_1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "market://details?id="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/UpdateAct;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f04001c

    const v1, 0x7f040020

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/UpdateAct;->overridePendingTransition(II)V
    :try_end_1
    .catch Landroid/content/ActivityNotFoundException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v0, "\u6ca1\u6709\u5b89\u88c5\u6709\u6548\u7684\u5e94\u7528\u5546\u5e97\u54e6~,\u60a8\u53ef\u4ee5\u9009\u62e9\u624b\u52a8\u66f4\u65b0\uff01"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 13

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    new-instance v1, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v1, p0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    const v0, -0xa0a0b

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    new-instance v0, Lcom/xingbook/ui/t;

    invoke-direct {v0, p0, p0}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const-string v2, "\u8f6f\u4ef6\u66f4\u65b0"

    iput-object v2, v0, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    const v2, -0x33ffec

    iput v2, v0, Lcom/xingbook/ui/t;->h:I

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v4

    sget v5, Lcom/xingbook/ui/t;->b:I

    invoke-virtual {v0, v2, v3, v4, v5}, Lcom/xingbook/ui/t;->layout(IIII)V

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    const/high16 v0, 0x42c8

    mul-float/2addr v0, v2

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v3

    const/high16 v0, 0x41a0

    mul-float/2addr v0, v2

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v4

    const/high16 v0, 0x41a0

    mul-float/2addr v0, v2

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v5

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v6, 0x7f020208

    invoke-static {v0, v6}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    new-instance v6, Landroid/widget/ImageView;

    invoke-direct {v6, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v6, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    sget v7, Lcom/xingbook/ui/t;->b:I

    add-int/2addr v7, v5

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v8

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    sub-int/2addr v8, v9

    int-to-float v8, v8

    const/high16 v9, 0x4000

    div-float/2addr v8, v9

    invoke-static {v8}, Ljava/lang/Math;->round(F)I

    move-result v8

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v9

    add-int/2addr v9, v8

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    add-int/2addr v0, v7

    invoke-virtual {v6, v8, v7, v9, v0}, Landroid/widget/ImageView;->layout(IIII)V

    invoke-virtual {v1, v6}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v6

    sub-int/2addr v6, v4

    const/high16 v7, 0x41a0

    mul-float/2addr v7, v2

    invoke-static {v7}, Ljava/lang/Math;->round(F)I

    move-result v7

    add-int v8, v0, v5

    new-instance v0, Lcom/xingbook/ui/ad;

    invoke-direct {v0, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    const/high16 v9, 0x4238

    mul-float/2addr v9, v2

    iput v9, v0, Lcom/xingbook/ui/ad;->c:F

    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    const/4 v9, 0x0

    iput v9, v0, Lcom/xingbook/ui/ad;->i:I

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_3

    const/4 v10, 0x1

    iput-boolean v10, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    iget-object v10, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    const/high16 v11, -0x1

    iput v11, v10, Lcom/xingbook/ui/ad;->b:I

    const-string v10, "versionName"

    invoke-virtual {v0, v10}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "\u661f\u5b9d\u4e50\u56ed"

    const-string v12, ""

    invoke-virtual {v10, v11, v12}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v10

    const-string v11, "info"

    invoke-virtual {v0, v11}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v11, "\u68c0\u6d4b\u5230\u65b0\u7248\u672c v"

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_0
    iget-object v10, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    iput-object v9, v10, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v9, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    const/16 v10, 0x11

    iput v10, v9, Lcom/xingbook/ui/ad;->d:I

    iget-object v9, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    add-int v10, v8, v3

    invoke-virtual {v9, v4, v8, v6, v10}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    const/high16 v8, 0x43fa

    mul-float/2addr v8, v2

    invoke-static {v8}, Ljava/lang/Math;->round(F)I

    move-result v8

    new-instance v9, Landroid/widget/TextView;

    invoke-direct {v9, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const v11, -0x99999a

    invoke-virtual {v9, v11}, Landroid/widget/TextView;->setTextColor(I)V

    const/4 v11, 0x0

    const/high16 v12, 0x4210

    mul-float/2addr v12, v2

    invoke-virtual {v9, v11, v12}, Landroid/widget/TextView;->setTextSize(IF)V

    sub-int v11, v6, v4

    invoke-virtual {v9, v11}, Landroid/widget/TextView;->setWidth(I)V

    invoke-virtual {v9, v8}, Landroid/widget/TextView;->setHeight(I)V

    invoke-virtual {v9, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    add-int v0, v10, v8

    invoke-virtual {v9, v4, v10, v6, v0}, Landroid/widget/TextView;->layout(IIII)V

    invoke-virtual {v1, v9}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v0

    mul-int/lit8 v8, v5, 0x2

    sub-int/2addr v0, v8

    sub-int/2addr v0, v3

    new-instance v8, Lcom/xingbook/ui/ad;

    invoke-direct {v8, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v8, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const/4 v9, 0x1

    invoke-virtual {v8, v9}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-boolean v8, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    if-eqz v8, :cond_0

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const-string v9, "\u624b\u52a8\u66f4\u65b0"

    iput-object v9, v8, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const v9, -0x932fb9

    iput v9, v8, Lcom/xingbook/ui/ad;->i:I

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const v9, -0xff9934

    invoke-virtual {v8, v9}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const-string v9, "update"

    invoke-virtual {v8, v9}, Lcom/xingbook/ui/ad;->setTag(Ljava/lang/Object;)V

    :cond_0
    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    iget-object v9, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    iget v9, v9, Lcom/xingbook/ui/ad;->c:F

    iput v9, v8, Lcom/xingbook/ui/ad;->c:F

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const/4 v9, -0x1

    iput v9, v8, Lcom/xingbook/ui/ad;->b:I

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const/high16 v9, 0x4120

    iput v9, v8, Lcom/xingbook/ui/ad;->j:F

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    const/16 v9, 0x11

    iput v9, v8, Lcom/xingbook/ui/ad;->d:I

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    iput v7, v8, Lcom/xingbook/ui/ad;->l:I

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    add-int v9, v0, v3

    invoke-virtual {v8, v4, v0, v6, v9}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    add-int/2addr v5, v3

    sub-int/2addr v0, v5

    new-instance v5, Lcom/xingbook/ui/ad;

    invoke-direct {v5, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v5, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const/4 v8, 0x2

    invoke-virtual {v5, v8}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const-string v8, "\u81ea\u52a8\u66f4\u65b0\uff08\u63a8\u8350\uff09"

    iput-object v8, v5, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const v8, -0x33ffec

    iput v8, v5, Lcom/xingbook/ui/ad;->i:I

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const v8, -0xff9934

    invoke-virtual {v5, v8}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-boolean v5, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    if-nez v5, :cond_1

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const/16 v8, 0x8

    invoke-virtual {v5, v8}, Lcom/xingbook/ui/ad;->setVisibility(I)V

    :cond_1
    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    iget-object v8, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    iget v8, v8, Lcom/xingbook/ui/ad;->c:F

    iput v8, v5, Lcom/xingbook/ui/ad;->c:F

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const/4 v8, -0x1

    iput v8, v5, Lcom/xingbook/ui/ad;->b:I

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const/high16 v8, 0x4120

    iput v8, v5, Lcom/xingbook/ui/ad;->j:F

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    const/16 v8, 0x11

    iput v8, v5, Lcom/xingbook/ui/ad;->d:I

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    iput v7, v5, Lcom/xingbook/ui/ad;->l:I

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    add-int v7, v0, v3

    invoke-virtual {v5, v4, v0, v6, v7}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v5, p0, Lcom/xingbook/park/activity/UpdateAct;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    sub-int/2addr v0, v3

    new-instance v5, Lcom/xingbook/ui/ad;

    invoke-direct {v5, p0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    const v7, -0x666667

    iput v7, v5, Lcom/xingbook/ui/ad;->b:I

    const/16 v7, 0x53

    iput v7, v5, Lcom/xingbook/ui/ad;->d:I

    const/high16 v7, 0x41e0

    mul-float/2addr v2, v7

    iput v2, v5, Lcom/xingbook/ui/ad;->c:F

    const/16 v2, 0xa

    iput v2, v5, Lcom/xingbook/ui/ad;->l:I

    const-string v2, "\u5982\u679c\u5e94\u7528\u5546\u5e97\u6682\u672a\u5b8c\u6210\u66f4\u65b0\uff0c\u8bf7\u4f7f\u7528\u624b\u52a8\u66f4\u65b0"

    iput-object v2, v5, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    add-int v2, v0, v3

    invoke-virtual {v5, v4, v0, v6, v2}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    invoke-virtual {p0, v1}, Lcom/xingbook/park/activity/UpdateAct;->setContentView(Landroid/view/View;)V

    iget-boolean v0, p0, Lcom/xingbook/park/activity/UpdateAct;->a:Z

    if-nez v0, :cond_2

    invoke-direct {p0}, Lcom/xingbook/park/activity/UpdateAct;->a()V

    :cond_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/xingbook/park/activity/UpdateAct;->d:Lcom/xingbook/ui/ad;

    const v10, -0x99999a

    iput v10, v0, Lcom/xingbook/ui/ad;->b:I

    const-string v0, "\u5f53\u524d\u7248\u672c "

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :try_start_0
    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->getPackageName()Ljava/lang/String;

    move-result-object v10

    const/4 v11, 0x0

    invoke-virtual {v0, v10, v11}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    const/16 v10, 0x76

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    const-string v0, ""

    goto/16 :goto_0

    :catch_0
    move-exception v0

    const-string v0, "- \u672a\u80fd\u68c0\u6d4b\u5230\u7248\u672c\u53f7"

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3

    const/4 v0, 0x0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v1

    const/4 v2, 0x4

    if-ne v1, v2, :cond_0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/UpdateAct;->a(I)V

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/UpdateAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
